<?php

/**
 * 
 */
class A 
{
	public $name= 90;

	public $config =[
		'color'=>'red',
		'age'=>'18',
	];

	public $arr =[
		'num'=>90,
		'length'=>90
	];

	public function __isset($name)
	{

		var_dump($name);
	}

	public function __unset($name)
	{
		var_dump($name);
	}

	public function __get($name)
	{
		if(isset($this->config[$name])){
			return $this->config[$name];
		}else{
			return $this->arr[$name];
		}
	}

	public function __set($name,$data)
	{
		var_dump($name,$data);
	}
	public function run($value='')
	{
		# code...
	}

	public function __call($name,$data)
	{
		var_dump($name,$data);
	}
}

$a = new A();

$a->run1(7897897);



// echo $a->length;

// var_dump(isset($a->sex));
